<?php
	$template = array(
		'table_open' => '<table border= "1" class="table">',
		'table_close' => '</table>'
	);

	$this->table->set_template($template);

	$this->table->set_heading('Id_unit', 'Nama_unit', 'Deskripsi_unit'); 
	foreach ($model->select_query() as $row){
		$this->table->add_row($row->id_unit,$row->name_unit,$row->desc->unit);
	}
	echo $this->table->generate();
	$this->table->clear();
?>